// 路由配置
import Home from '../Components/Home'
import UserManagement from '../Components/UserManagement'
import TeachingResearchManagement from '../Components/TeachingResearchManagement'
import CampusManagement from '../Components/TeachingResearchManagement/CampusManagement'
import CourseManagement from '../Components/TeachingResearchManagement/CourseManagement'
import ActivityManagement from '../Components/ActivityManagement'
import MallManagement from '../Components/MallManagement'
import EducationManagement from '../Components/EducationManagement'
import FinancialManagement from '../Components/FinancialManagement'
import AuthorityManagement from '../Components/AuthorityManagement'
import NotificationManagement from '../Components/NotificationManagement'
import UserTable from '../Components/UserManagement/userTable'
import UserDetails from '../Components/UserManagement/UserDetails'
import MallTable from '../Components/MallManagement/mallTable'
import GoodsInfo from '../Components/MallManagement/goodsInfo'
import OrderManagement from '../Components/MallManagement/orderManagement'
import OrderMessage from '@/Public/Order/orderMessage'
import ChooseManage from '../Components/TeachingResearchManagement/ChooseManage'
import CoursewareManagement from '../Components/TeachingResearchManagement/CoursewareManagement'
import RecycleBin from '../Components/TeachingResearchManagement/RecycleBin'
import CourseDescription from '../Components/TeachingResearchManagement/CourseDescription'


const routerConfig = [
  {
    path: '/homePage',
    exact: true,
    component: Home
  },
  {
    path: '/homePage/userManagement',
    component: UserManagement,
    routes: [{
      path: '/homePage/userManagement/users',
      exact: true,
      component: UserTable,
    },
    {
      path: '/homePage/userManagement/users/userDetails',
      component: UserDetails
    }]
  },
  {
    path: '/homePage/teachingResearchManagement',
    component: TeachingResearchManagement,
    routes: [{
      path: '/homePage/teachingResearchManagement/campusManagement',
      exact: true,
      component: CampusManagement,
    },
    {
      path: '/homePage/teachingResearchManagement/campusManagement/ChooseManage',
      component: ChooseManage
    },
    {
      path: '/homePage/teachingResearchManagement/campusManagement/CourseManagement',
      exact: true,
      component: CourseManagement
    },
    {
      path: '/homePage/teachingResearchManagement/campusManagement/CourseManagement/CourseDescription',
      exact: true,
      component: CourseDescription
    },
    {
      path: '/homePage/teachingResearchManagement/campusManagement/CoursewareManagement',
      component: CoursewareManagement
    },
    {
      path: '/homePage/teachingResearchManagement/campusManagement/RecycleBin',
      component: RecycleBin
    },],
  },
  {
    path: '/homePage/activityManagement',
    component: ActivityManagement
  },
  {
    path: '/homePage/mallManagement',
    component: MallManagement,
    routes: [{
      path: '/homePage/mallManagement/goods',
      exact: true,
      component: MallTable,
    },
    {
      path: '/homePage/mallManagement/goods/goodsInfo',
      component: GoodsInfo
    },
    {
      path: '/homePage/mallManagement/orderManagement',
      exact: true,
      component: OrderManagement
    },
    {
      path: '/homePage/mallManagement/orderManagement/orderMessage',
      component: OrderMessage
    }]
  },
  {
    path: '/homePage/educationManagement',
    component: EducationManagement
  },
  {
    path: '/homePage/financialManagement',
    component: FinancialManagement
  },
  {
    path: '/homePage/authorityManagement',
    component: AuthorityManagement
  },
  {
    path: '/homePage/notificationManagement',
    component: NotificationManagement
  },
]

export default routerConfig